<template>
  <div class="account-manager-page">
    <second-router router-key="/account" :nav-items="navItems"></second-router>
  </div>
</template>

<script>

import SecondRouter from '@/layout/second-router'
import { mapGetters } from 'vuex'
export default {
  components: { SecondRouter   },
  props: {},
  data() {
    return {
      navItems: [

      ]
    };
  },
  watch: {},
  computed: {
    ...mapGetters(['userInfo'])
  },
  methods: {},
  created() {
    if(this.userInfo.role==5||this.userInfo.role==1){
      this.navItems = [
        { title: "账号管理", path: "/ent" },
        { title: "账号注销", path: "/Logout-list" },
      ]
    }else{
      this.navItems = [
        { title: "账号管理", path:"/user/info" },
        { title: "修改密码", path:  "/user/pwd"},
      ]
    }
  },
  mounted() {}
};
</script>
<style lang="scss" scoped></style>
